<?php

class cases_model extends admin_model {

    public function __construct() {
        parent::__construct();
        $this->table = 'case';
        $this->select = array($this->table . '.*', 'products.name');
        $this->join = array('products' => 'products.id = case.product_id');
    }

}